def user_confirms?(question)
  while true            # Loop until response is given
    print question      # Print the question
    response = gets     # Get the users response
    case response
    when /^[yY]/        # If the user said Yes
      return true       # return true
    when /^[nN]/        # If the user said No
      return false      # Return false
    end
  end
end